package com.ns002.yigou.quote.globals;

/**
 * Created by xu on 2016/12/14.
 * 返回数据状态表
 */
public enum ResultStatus {

    SUCCESS("请求成功", 200),

    ACCOUNT_PASSWORD_ERROR("用户名或密码错误", 600),
    PHONE_FORMAT_ERROR("请输入正确的手机号码格式", 601),
    ACCOUNT_EXIST_ERROR("当前用户已注册", 602),
    ACCOUNT_UNEXIST_ERROR("当前用户未注册", 603),
    IDENTIFY_ERROR("验证码错误", 604),
    ACCOUNT_DISABLE_ERROR("用户被禁用", 605),
    PASSWORD_ERROR("密码错误", 606),
    DATA_CANNOT_NULL("数据不能为空", 607),
    WITHDRAW_ASTRICT("交易金额必须要达到{0}元才可以提现哦~", 608),
    WITHDRAW_CHECK("提现已进入审核", 609),
    REDPAPER_EMPTY("红包已经被抢光了", 610),
    REDPAPER_ALREADY("已经领取过该红包", 611),
    REDPAPER_TIMEOUT("该红包已超时", 612),


    ILLEGAL_PARAMETER("非法参数", 700),
    ILLEGAL_SIGN("非法签名", 701),

    BAIBEI_API("百倍接口异常", 800),

    CLOSED_MARKET("休市时间", 1100),
    BAIBEI_TOKEN_TIMEOUT("令牌失效", -99),
    TOKEN_TIMEOUT("令牌失效", -100),
    HG_PWD_EXCEPTION("哈贵所状态异常,请尝试更新版本", -103),
    JM_PWD_EXCEPTION("吉交所状态异常,请尝试更新版本", -104),
    JCCE_PWD_EXCEPTION("吉农所状态异常，请尝试更新版本", -105),
    EBUY_PWD_EXCEPTION("易购商城状态异常", -106),

    ERROR("请求失败", 500);


    // 成员变量
    private String statusMessage;
    private int statusCode;

    ResultStatus(String statusMessage, int statusCode){
        this.statusMessage = statusMessage;
        this.statusCode = statusCode;
    }


    public String getStatusMessage() {
        return statusMessage;
    }

    public void setStatusMessage(String statusMessage) {
        this.statusMessage = statusMessage;
    }

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }
}
